package com.kingtao.message;

import lombok.Data;

/**
 * @Author: kingtao
 * @Date: 2023-08-23-15:46
 * @Description:
 */
@Data
public class AppendSecondLeaderLogEntryResponse extends Message {

    String localIndex;
    String str;
    boolean success;
    @Override
    public int getMessageType() {
        return 11;
    }

    public AppendSecondLeaderLogEntryResponse(String localIndex, String str, boolean success) {
        this.localIndex = localIndex;
        this.str = str;
        this.success = success;
    }

    public AppendSecondLeaderLogEntryResponse(String str, boolean success) {
        this.str = str;
        this.success = success;
    }
}
